﻿using System;
using System.Collections.Generic;

using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace BFTest.Ammunitions
{
    class CRifle : CBullet
    {
        Vector2 size = new Vector2(2, 2);
        public override Vector2 Size { get { return size; } set { size = value; } }

        float speed = 500f;
        public override float Speed { get { return speed; } set { speed = value; } }
        
        int damage = 30;
        public override int Damage { get { return damage; } set { damage = value; } }

        Color bulletColor = Color.Black;
        public override Color BulletColor { get { return bulletColor; } set { bulletColor = value; } }

        public override BulletType BulletType { get { return BulletType.Rifle; } }

        public CRifle(int originID, Vector2 position, Vector2 direction, int id, string weapon)
            : base(originID, position, direction, id, weapon)
        {
            this.Initialize();
        }

        protected override void Initialize()
        {
            base.Initialize();
        }

        public override void Update(GameTime gameTime)
        {
            base.Update(gameTime);
        }

        public override void Draw(SpriteBatch spriteBatch)
        {
            spriteBatch.Draw(BFTestGame.ActiveBullets.BulletTexture, BoundingBox, BulletColor);
        }
    }
}
